package com.zzedu.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zzedu.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 课程管理对象 zz_content_head
 *
 * @author Mr.Wang
 * @date 2025-04-04
 */
@TableName("zz_picture_book")
public class ZzPictureBook implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 绘本名称
     */
    @Excel(name = "绘本名称")
    private String name;
    /**
     * UNITID
     */
    private Long unitId;
    /**
     * 绘本标签
     */
    @Excel(name = "绘本标签")
    private String tag;

    /**
     * 在线
     */
    @Excel(name = "在线")
    private Integer state;

    /**
     * 顺序
     */
    @Excel(name = "顺序")
    private Integer sortNo;

    /**
     * 视频
     */
    @Excel(name = "视频")
    private String video;

    /**
     * 介绍
     */
    @Excel(name = "介绍")
    private String introduce;

    /**
     * 单词
     */
    @Excel(name = "单词")
    private String words;

    /**
     * 句型
     */
    @Excel(name = "句型")
    private String sentence;

    /**
     * 级别
     */
    @Excel(name = "级别")
    private String level;

    /**
     * 封面
     */
    @Excel(name = "封面")
    private String cover;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime gmtModify;

    /**
     * 逻辑删除(0：未删除 1：id)
     */
    @TableLogic(delval = "id")
    @TableField(fill = FieldFill.INSERT)
    private Integer deleted;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    /**
     * 是否是 reviewFlag
     */
    private Integer reviewFlag;
    /**
     * 显示模式 1-APP 2-大屏 3-APP&大屏
     */
    private Integer showModel;

    @TableField(exist = false)
    private LocalDateTime unLockDate;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getWords() {
        return words;
    }

    public void setWords(String words) {
        this.words = words;
    }

    public String getSentence() {
        return sentence;
    }

    public void setSentence(String sentence) {
        this.sentence = sentence;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(LocalDateTime gmtModify) {
        this.gmtModify = gmtModify;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public Integer getReviewFlag() {
        return reviewFlag;
    }

    public void setReviewFlag(Integer reviewFlag) {
        this.reviewFlag = reviewFlag;
    }

    public Integer getShowModel() {
        return showModel;
    }

    public void setShowModel(Integer showModel) {
        this.showModel = showModel;
    }

    public LocalDateTime getUnLockDate() {
        return unLockDate;
    }

    public void setUnLockDate(LocalDateTime unLockDate) {
        this.unLockDate = unLockDate;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
